 	package Game
{
	import flash.net.URLLoader;
	import flash.net.URLRequest;
	import flash.net.URLRequestMethod;
	import flash.net.URLVariables;
	import flash.utils.getTimer;

	public final class Request
	{
		private var loader:URLLoader;
		private var request:URLRequest;
		
		public function Request(url:String)
		{
			loader=new URLLoader();
			request=new URLRequest(url);
			request.method=URLRequestMethod.POST;		
		}
		public function send(time:Number,name:String="anonimous"):void{
			var variables:URLVariables=new URLVariables();
			variables['name']=name;
			variables['score']=time;
			variables['data']=getTimer();
			request.data=variables;
			loader.load(request);
		}
		public function take():void{
			
		}
	}
}